package com.gdiss.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Velore
 * @date 2022/1/20
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 用户密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 用户邮箱地址
     */

    @TableField(value = "user_email_address")
    private String userEmailAddress;

    /**
     * 用户微信id
     */

    @TableField(value = "user_wechat_openid")
    private String userWeChatOpenid;

    @TableField(value = "user_gender")
    private int userGender;

    @TableField(value = "user_address_province_id")
    private int userAddressProvinceId;

    @TableField(value = "user_address_city_id")
    private int userAddressCityId;

    @TableField(value = "user_address_specific")
    private String userAddressSpecific;

    @TableField(value = "user_phone_number")
    private String userPhoneNumber;

    @TableField(value = "user_degree")
    private int userDegree;

    @TableField(value = "user_school_name")
    private String userSchoolName;
}
